package com.jzo2o.market.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jzo2o.market.model.domain.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    /**
     * 查询优惠券列表
     * @param page
     * @param activityId
     * @return
     */
    List<CouponInfoResDTO> pageCouponList(@Param("page")Page<CouponInfoResDTO> page,@Param("activityId") Long activityId);
}
